@import "../utils/color";

ul.scroll-list {
  margin: 0 50px;
}

.playlist-scroll-v {
  width: 100%;
  height: 100%;
}

.playlist-scroll-h {
  width: 100%;
  height: 250px;

  & + & {
    margin-top: 20px;
  }
}

.playlist-tab {
  position: relative;
  float: left;
  width: 205px;
  height: 250px;
  margin-right: 10px;

  &.fe-focus {
    .playlist-tab-photo {
      transform: scale(1.1);
      border: 5px solid $primary;

      .photo-mask {
        position: absolute;
        z-index: 1;
        width: 100%;
        height: 100%;
        background-color: rgba($black, 0.5);
      }

      .play-icon {
        z-index: 2;
        display: block;
      }
    }
  }

  &-photo {
    position: absolute;
    width: 100%;
    height: 205px;
    border-radius: 5px;

    .play-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      display: none;
      transform: translate(-50%, -50%);
    }

    &-img {
      position: absolute;
      width: 100%;
      height: 100%;
    }
  }

  &-inner {
    position: absolute;
    top: 70%;
    left: 70%;
    width: 80px;
    height: 24px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background-color: $black;

    &-headphone {
      position: absolute;
      top: 50%;
      left: 10%;
      width: 16px;
      height: 16px;
      transform: translateY(-50%);
    }

    &-count {
      font-size: 16px;
      position: absolute;
      top: 50%;
      right: 10%;
      transform: translateY(-50%);
    }
  }

  &-outer {
    font-size: 28px;
    position: absolute;
    top: 220px;
    left: 50%;
    display: inline-block;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
    height: 32px;
    transform: translateX(-50%);
    white-space: nowrap;
    word-break: keep-all;

    .marquee-truncate {
      padding: 0 16px;
      text-align: center;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
}
